﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using TechTalk.SpecFlow;

namespace YasharEl.Infrastructure.AllModules.AcceptanceTests.Support
{
    [Binding]
    public class TimeSimulationStepDefinition
    {
        [Then(@"I simulate service bus working time : (.*)")]
        public void ThenISimulateServiceBusWorkingTime(int milliseconds)
        {
            Thread.Sleep(milliseconds);
        }

        [Then(@"I simulate user thinking time : (.*)")]
        public void ThenISimulateUserThinkingTime(int milliseconds)
        {
            Thread.Sleep(milliseconds);
        }

        [Then(@"I simulate workflow running time : (.*)")]
        public void ThenISimulateWorkflowRunningTime(int milliseconds)
        {
            Thread.Sleep(milliseconds);
        }
    }
}
